package com.relytosoft.mizar.media.display.api.pojo.dto;

import com.relytosoft.mizar.media.display.api.entity.RotagroupChannel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * RotagroupDto
 *
 * @Author SunLi
 * @Date: 2022/5/25 11:16
 * @Version 1.0
 */
@ApiModel("巡检组")
public class RotagroupDto implements Serializable {

    private static final long serialVersionUID = -1957257998331000556L;
    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称", required = true)
    @NotBlank(message = "名称不能为空")
    private String groupName;
    /**
     * 轮巡间隔;时间(s)
     */
    @ApiModelProperty(value = "轮巡间隔;时间(s)")
    @NotNull(message = "轮巡间隔不能为空")
    private Integer rotaInterval;

    /**
     * 窗口分割;视频窗口布局
     */
    @ApiModelProperty(value = "窗口分割;视频窗口布局")
    @NotNull(message = "窗口分割不能为空")
    private Integer layout;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;


    /**
     * 巡检通道明细列表
     */
    @ApiModelProperty(value = "巡检通道明细列表")
    private List<RotagroupChannel> rotagroupChannelList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Integer getRotaInterval() {
        return rotaInterval;
    }

    public void setRotaInterval(Integer rotaInterval) {
        this.rotaInterval = rotaInterval;
    }

    public Integer getLayout() {
        return layout;
    }

    public void setLayout(Integer layout) {
        this.layout = layout;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<RotagroupChannel> getRotagroupChannelList() {
        return rotagroupChannelList;
    }

    public void setRotagroupChannelList(List<RotagroupChannel> rotagroupChannelList) {
        this.rotagroupChannelList = rotagroupChannelList;
    }

    @Override
    public String toString() {
        return "RotagroupDto{" +
                "id=" + id +
                ", groupName='" + groupName + '\'' +
                ", rotaInterval=" + rotaInterval +
                ", layout=" + layout +
                ", sort=" + sort +
                ", remark='" + remark + '\'' +
                ", rotagroupChannelList=" + rotagroupChannelList +
                '}';
    }
}
